<%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-06-01-001
  Time: 下午 08:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    try {
        Class.forName ("com.mysql.jdbc.Driver");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    try {
        Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/ecut?serverTimezone=Asia/Shanghai", "root", "20010812");
    } catch (SQLException e) {
        e.printStackTrace();
    }
    out.println("数据库链接成功");
%>
</body>
</html>
